<?php
header('Access-Control-Allow-Origin:*');
header('Access-Control-Allow-Methods:POST');
header('Access-Control-Allow-Headers:x-requested-with,content-type');
$spConfig_ext = array(
    'launch' => array(
        'router_prefilter' => array(
            array('spUrlRewrite', 'setReWrite')
        ),
        'function_url' => array(
            array("spUrlRewrite", "getReWrite") // 对spUrl进行挂靠，让spUrl可以进行Url_ReWrite地址的生成
        )
    ),
    'ext' => array(
        'spUrlRewrite' => array(
            'suffix' => '', // 生成地址的结尾符
            'sep' => '_',
        )
    ),
);
require("../base.php");
spRun();
?>